package com.example.demo.controller.system;

import com.example.demo.entity.Result;
import com.example.demo.service.system.HomePageTitleService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @description: 系统首页的标题
 * @author: cj
 * @create: 17-01-10 17:25:49
 */
@RestController
@RequestMapping("/system/homePageTitle")
public class HomePageTitleController {
    @Resource
    HomePageTitleService homePageTitleService;

    /**
     * 标题操作
     *
     * @param map 操作map （handle 为 find insert 和修改）
     */
    @PostMapping("/handleHomePage")
    public Result handleHomePage(@RequestBody Map<String, Object> map) {
        return homePageTitleService.handleHomePage( map );
    }
}
